package com.seari.bean;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class RlEventMaintenanceRecord {
    private Integer taskNo;

    private String eventid;

    private String fProductId;
    private  String productCode;

    private String maintenanceFalg;

    private Date maintenanceDate;
    private String mD;

    private String maintenancePerson;

    private String maintenanceContent;

    private String remark;

    private String task;

    private String createdUser;

    private Date createTime;
    private String cT;

    private String updatedUser;

    private Date updatedTime;
    private String uT;

    private String eventtitle;

    private String productName;
    private String maintenanceFalgName;
    private String taskName;

    public String getProductCode() {

        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public static Map<String, String> MAINTENANCEFALGNAME = new HashMap<String, String>();
    public static Map<String, String> TASKNAME = new HashMap<String, String>();
    static {
        MAINTENANCEFALGNAME.put("0","维修");

        TASKNAME.put("0","未处理");
        TASKNAME.put("1","处理中");
        TASKNAME.put("2","搁置");
        TASKNAME.put("3","已处理");
    }

    public String getmD() {
        return mD;
    }

    public void setmD(String mD) {
        this.mD = mD;
    }

    public String getcT() {
        return cT;
    }

    public void setcT(String cT) {
        this.cT = cT;
    }

    public String getuT() {
        return uT;
    }

    public void setuT(String uT) {
        this.uT = uT;
    }

    public String getMaintenanceFalgName() {
        return maintenanceFalgName;
    }

    public void setMaintenanceFalgName(String maintenanceFalgName) {
        this.maintenanceFalgName = maintenanceFalgName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getEventtitle() {
        return eventtitle;
    }

    public void setEventtitle(String eventtitle) {
        this.eventtitle = eventtitle;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(Integer taskNo) {
        this.taskNo = taskNo;
    }

    public String getEventid() {
        return eventid;
    }

    public void setEventid(String eventid) {
        this.eventid = eventid == null ? null : eventid.trim();
    }

    public String getfProductId() {
        return fProductId;
    }

    public void setfProductId(String fProductId) {
        this.fProductId = fProductId == null ? null : fProductId.trim();
    }

    public String getMaintenanceFalg() {
        return maintenanceFalg;
    }

    public void setMaintenanceFalg(String maintenanceFalg) {
        this.maintenanceFalg = maintenanceFalg == null ? null : maintenanceFalg.trim();
        this.setMaintenanceFalgName(MAINTENANCEFALGNAME.get(maintenanceFalg));
    }

    public Date getMaintenanceDate() {
        return maintenanceDate;
    }

    public void setMaintenanceDate(Date maintenanceDate) {
        this.maintenanceDate = maintenanceDate;
    }

    public String getMaintenancePerson() {
        return maintenancePerson;
    }

    public void setMaintenancePerson(String maintenancePerson) {
        this.maintenancePerson = maintenancePerson == null ? null : maintenancePerson.trim();
    }

    public String getMaintenanceContent() {
        return maintenanceContent;
    }

    public void setMaintenanceContent(String maintenanceContent) {
        this.maintenanceContent = maintenanceContent == null ? null : maintenanceContent.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task == null ? null : task.trim();
        this.setTaskName(TASKNAME.get(task));
    }

    public String getCreatedUser() {
        return createdUser;
    }

    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser == null ? null : createdUser.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdatedUser() {
        return updatedUser;
    }

    public void setUpdatedUser(String updatedUser) {
        this.updatedUser = updatedUser == null ? null : updatedUser.trim();
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}